package com.pig4cloud.pigx.pay.entity.DTO;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@Data
@Schema(description = "支付参数")
public class PayParamsDTO {

    @Schema(description = "申请号渠道Id（响应时候以区分系统来源）-否则需要根据订单号查询是否本系统订单（可以空）")
    private String reqChn;

    @Schema(description = "支付订单号(申请号)")
    private String reqNo;

    /**
     * 渠道ID
     */
    @Schema(description = "渠道ID(支付渠道:ALIPAY_WAP、ALIPAY_APP 等)，見PayChannelNameEnum")
    private String channelId;

    @Schema(description = "支付方式：1=app(默认) 2=wap")
    private Integer payType;

    /**
     * 支付金额
     */
    @Schema(description = "支付金额(分)")
    private Long amount;

    /**
     * 设备
     */
    @Schema(description = "设备")
    private String device;

    /**
     * 商品标题
     */
    @Schema(description = "商品标题")
    private String subject;

    /**
     * 商品描述信息
     */
    @Schema(description = "商品描述信息")
    private String body;

    /**
     * 特定渠道发起时额外参数
     */
    @Schema(description = "特定渠道发起时额外参数")
    private String extra;

    /**
     * 渠道商户ID
     */
    @Schema(description = "渠道商户ID")
    private String channelMchId;

    /**
     * 渠道订单号
     */
    @Schema(description = "渠道订单号")
    private String channelOrderNo;

    /**
     * 渠道支付错误码
     */
    @Schema(description = "渠道支付错误码")
    private String errCode;

    /**
     * 渠道支付错误描述
     */
    @Schema(description = "渠道支付错误描述")
    private String errMsg;

    @Schema(description = "租户ID",hidden = true)
    private Long tenantId;
}
